package com.exam.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="role_menu")
public class RoleMenu {
	@Id
	@Column(name="rmId")
	private int rmId;
	
	@Column(name="roleId")
	private int roleId;
	
	@Column(name="menuId")
	private int menuId;
	
	@Column(name="parentId")
	private int parentId;
	public int getRoleId() {
		return roleId;
	}
	public void setRoleId(int roleId) {
		this.roleId = roleId;
	}
	public int getMenuId() {
		return menuId;
	}
	public void setMenuId(int menuId) {
		this.menuId = menuId;
	}
	public int getParentId() {
		return parentId;
	}
	public void setParentId(int parentId) {
		this.parentId = parentId;
	}
	public RoleMenu(int roleId, int menuId, int parentId) {
		super();
		this.roleId = roleId;
		this.menuId = menuId;
		this.parentId = parentId;
	}
	public RoleMenu() {
		super();
	}
	
	
}
